<template>
  <!-- <img alt="Vue logo" src="./assets/logo.png">
  <Login msg="Welcome to Your Vue.js App"/> -->

  <div class="nav">
    <div>
      <router-link to="/">首页</router-link>
    </div>
    <div>
      <router-link to="/about">关于</router-link>
    </div>
    <div v-for="(item, index) in navData" :key="index">
      <router-link :to="item.path">{{ item.title }}</router-link>
    </div>
  </div>
  <hr>
  <router-view></router-view>
</template>

<script>
// import Login from './components/Login.vue'
//import HelloWorld from './components/HelloWorld.vue'
//import router from './router/route';
//import Report from './views/report/index.vue'
//import Event from './views/event/index.vue'
import { navData } from './untils/nav';

export default {
  name: 'App',
  components: {

  },
  setup() {
    return {
      navData
    }
  }
}

</script>

<style>
#app {
  display: flex;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  height: 100vh;
}

.nav {
  width: 200px;
  background: #f8f9fa;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.nav a {
  display: block;
  color: #2c3e50;
  padding: 10px 0;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.nav a:hover {
  background: #e9ecef;
}

.content {
  flex: 1;
  padding: 20px;
  overflow: auto;
}
</style>
